package com.xxx.service;

import com.xxx.pojo.Address;

import java.util.List;

//收货地址业务层接口
public interface AddressService {
    //新增收货地址功能
    void addNewAddress(Integer uid, String username, Address address);
    //显示收货地址功能
    List<Address> getByUid(Integer uid);
    //设置默认收货地址功能
    void setDefaultAddress(Integer aid,Integer uid,String username);
    //删除收货地址功能
    void deleteAddress(Integer aid,Integer uid);
    ////回显要修改收货地址的数据功能
    Address getOneByAid(Integer aid);
    //修改收货地址功能
    void updateAddress(Address address,Integer uid,String username);
}
